#include <catch2/catch.hpp>

#include "031_medium.hpp"

using namespace jianzhi_031;

TEST_CASE("031", "[JIANZHI][031]")
{

CHECK(Solution().validateStackSequences({}, {})                   == true);
CHECK(Solution().validateStackSequences({1,2,3,4,5}, {4,5,3,2,1}) == true);
CHECK(Solution().validateStackSequences({1,2,3,4,5}, {4,3,5,1,2}) == false);

}
